package zy1208.zy25;

import java.io.FileInputStream;
import java.lang.reflect.Method;
import java.util.Properties;
import java.util.Set;

public class demo {
    public static void main(String[] args) throws Exception {
        Properties p = new Properties();
        FileInputStream f = new FileInputStream("D:\\ideadashuju12\\liu_ya_kai\\src\\zy1208\\zy25\\t.Properties");
        p.load(f);
        f.close();
        Set<String> set = p.stringPropertyNames();
        for (String s : set) {
            Class<?> aClass = Class.forName(p.getProperty(s));
            Method run = aClass.getDeclaredMethod("run");
            Object o = aClass.newInstance();
            run.invoke(o);
        }


    }
}
